package com.yscz.bs.lib;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.15.1)",
    comments = "Source: proto/educationProto.proto")
public final class EducationProtoGrpc {

  private EducationProtoGrpc() {}

  public static final String SERVICE_NAME = "educationProto.EducationProto";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> getControlAlgMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "controlAlg",
      requestType = com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest.class,
      responseType = com.yscz.bs.lib.EducationProtoOuterClass.AlgReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> getControlAlgMethod() {
    io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest, com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> getControlAlgMethod;
    if ((getControlAlgMethod = EducationProtoGrpc.getControlAlgMethod) == null) {
      synchronized (EducationProtoGrpc.class) {
        if ((getControlAlgMethod = EducationProtoGrpc.getControlAlgMethod) == null) {
          EducationProtoGrpc.getControlAlgMethod = getControlAlgMethod = 
              io.grpc.MethodDescriptor.<com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest, com.yscz.bs.lib.EducationProtoOuterClass.AlgReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "educationProto.EducationProto", "controlAlg"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.AlgReply.getDefaultInstance()))
                  .setSchemaDescriptor(new EducationProtoMethodDescriptorSupplier("controlAlg"))
                  .build();
          }
        }
     }
     return getControlAlgMethod;
  }

  private static volatile io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> getSendFacesEmotionMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "sendFacesEmotion",
      requestType = com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest.class,
      responseType = com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> getSendFacesEmotionMethod() {
    io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest, com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> getSendFacesEmotionMethod;
    if ((getSendFacesEmotionMethod = EducationProtoGrpc.getSendFacesEmotionMethod) == null) {
      synchronized (EducationProtoGrpc.class) {
        if ((getSendFacesEmotionMethod = EducationProtoGrpc.getSendFacesEmotionMethod) == null) {
          EducationProtoGrpc.getSendFacesEmotionMethod = getSendFacesEmotionMethod = 
              io.grpc.MethodDescriptor.<com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest, com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "educationProto.EducationProto", "sendFacesEmotion"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply.getDefaultInstance()))
                  .setSchemaDescriptor(new EducationProtoMethodDescriptorSupplier("sendFacesEmotion"))
                  .build();
          }
        }
     }
     return getSendFacesEmotionMethod;
  }

  private static volatile io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> getSendEmotionStatisticsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "sendEmotionStatistics",
      requestType = com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest.class,
      responseType = com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest,
      com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> getSendEmotionStatisticsMethod() {
    io.grpc.MethodDescriptor<com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest, com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> getSendEmotionStatisticsMethod;
    if ((getSendEmotionStatisticsMethod = EducationProtoGrpc.getSendEmotionStatisticsMethod) == null) {
      synchronized (EducationProtoGrpc.class) {
        if ((getSendEmotionStatisticsMethod = EducationProtoGrpc.getSendEmotionStatisticsMethod) == null) {
          EducationProtoGrpc.getSendEmotionStatisticsMethod = getSendEmotionStatisticsMethod = 
              io.grpc.MethodDescriptor.<com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest, com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply>newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "educationProto.EducationProto", "sendEmotionStatistics"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply.getDefaultInstance()))
                  .setSchemaDescriptor(new EducationProtoMethodDescriptorSupplier("sendEmotionStatistics"))
                  .build();
          }
        }
     }
     return getSendEmotionStatisticsMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static EducationProtoStub newStub(io.grpc.Channel channel) {
    return new EducationProtoStub(channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static EducationProtoBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    return new EducationProtoBlockingStub(channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static EducationProtoFutureStub newFutureStub(
      io.grpc.Channel channel) {
    return new EducationProtoFutureStub(channel);
  }

  /**
   */
  public static abstract class EducationProtoImplBase implements io.grpc.BindableService {

    /**
     * <pre>
     * 算法控制
     * </pre>
     */
    public void controlAlg(com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> responseObserver) {
      asyncUnimplementedUnaryCall(getControlAlgMethod(), responseObserver);
    }

    /**
     * <pre>
     * 发送多人表情数据
     * </pre>
     */
    public void sendFacesEmotion(com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> responseObserver) {
      asyncUnimplementedUnaryCall(getSendFacesEmotionMethod(), responseObserver);
    }

    /**
     * <pre>
     *发送实时课堂表情数
     * </pre>
     */
    public void sendEmotionStatistics(com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> responseObserver) {
      asyncUnimplementedUnaryCall(getSendEmotionStatisticsMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getControlAlgMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest,
                com.yscz.bs.lib.EducationProtoOuterClass.AlgReply>(
                  this, METHODID_CONTROL_ALG)))
          .addMethod(
            getSendFacesEmotionMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest,
                com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply>(
                  this, METHODID_SEND_FACES_EMOTION)))
          .addMethod(
            getSendEmotionStatisticsMethod(),
            asyncUnaryCall(
              new MethodHandlers<
                com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest,
                com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply>(
                  this, METHODID_SEND_EMOTION_STATISTICS)))
          .build();
    }
  }

  /**
   */
  public static final class EducationProtoStub extends io.grpc.stub.AbstractStub<EducationProtoStub> {
    private EducationProtoStub(io.grpc.Channel channel) {
      super(channel);
    }

    private EducationProtoStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected EducationProtoStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new EducationProtoStub(channel, callOptions);
    }

    /**
     * <pre>
     * 算法控制
     * </pre>
     */
    public void controlAlg(com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getControlAlgMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     * 发送多人表情数据
     * </pre>
     */
    public void sendFacesEmotion(com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getSendFacesEmotionMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     * <pre>
     *发送实时课堂表情数
     * </pre>
     */
    public void sendEmotionStatistics(com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest request,
        io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> responseObserver) {
      asyncUnaryCall(
          getChannel().newCall(getSendEmotionStatisticsMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class EducationProtoBlockingStub extends io.grpc.stub.AbstractStub<EducationProtoBlockingStub> {
    private EducationProtoBlockingStub(io.grpc.Channel channel) {
      super(channel);
    }

    private EducationProtoBlockingStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected EducationProtoBlockingStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new EducationProtoBlockingStub(channel, callOptions);
    }

    /**
     * <pre>
     * 算法控制
     * </pre>
     */
    public com.yscz.bs.lib.EducationProtoOuterClass.AlgReply controlAlg(com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest request) {
      return blockingUnaryCall(
          getChannel(), getControlAlgMethod(), getCallOptions(), request);
    }

    /**
     * <pre>
     * 发送多人表情数据
     * </pre>
     */
    public com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply sendFacesEmotion(com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest request) {
      return blockingUnaryCall(
          getChannel(), getSendFacesEmotionMethod(), getCallOptions(), request);
    }

    /**
     * <pre>
     *发送实时课堂表情数
     * </pre>
     */
    public com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply sendEmotionStatistics(com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest request) {
      return blockingUnaryCall(
          getChannel(), getSendEmotionStatisticsMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class EducationProtoFutureStub extends io.grpc.stub.AbstractStub<EducationProtoFutureStub> {
    private EducationProtoFutureStub(io.grpc.Channel channel) {
      super(channel);
    }

    private EducationProtoFutureStub(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected EducationProtoFutureStub build(io.grpc.Channel channel,
        io.grpc.CallOptions callOptions) {
      return new EducationProtoFutureStub(channel, callOptions);
    }

    /**
     * <pre>
     * 算法控制
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.yscz.bs.lib.EducationProtoOuterClass.AlgReply> controlAlg(
        com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getControlAlgMethod(), getCallOptions()), request);
    }

    /**
     * <pre>
     * 发送多人表情数据
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply> sendFacesEmotion(
        com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getSendFacesEmotionMethod(), getCallOptions()), request);
    }

    /**
     * <pre>
     *发送实时课堂表情数
     * </pre>
     */
    public com.google.common.util.concurrent.ListenableFuture<com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply> sendEmotionStatistics(
        com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest request) {
      return futureUnaryCall(
          getChannel().newCall(getSendEmotionStatisticsMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_CONTROL_ALG = 0;
  private static final int METHODID_SEND_FACES_EMOTION = 1;
  private static final int METHODID_SEND_EMOTION_STATISTICS = 2;

  private static final class MethodHandlers<Req, Resp> implements
      io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
      io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
    private final EducationProtoImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(EducationProtoImplBase serviceImpl, int methodId) {
      this.serviceImpl = serviceImpl;
      this.methodId = methodId;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        case METHODID_CONTROL_ALG:
          serviceImpl.controlAlg((com.yscz.bs.lib.EducationProtoOuterClass.AlgRequest) request,
              (io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AlgReply>) responseObserver);
          break;
        case METHODID_SEND_FACES_EMOTION:
          serviceImpl.sendFacesEmotion((com.yscz.bs.lib.EducationProtoOuterClass.EmotionsRequest) request,
              (io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllEmotionsReply>) responseObserver);
          break;
        case METHODID_SEND_EMOTION_STATISTICS:
          serviceImpl.sendEmotionStatistics((com.yscz.bs.lib.EducationProtoOuterClass.StatisticsRequest) request,
              (io.grpc.stub.StreamObserver<com.yscz.bs.lib.EducationProtoOuterClass.AllStatisticsReply>) responseObserver);
          break;
        default:
          throw new AssertionError();
      }
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("unchecked")
    public io.grpc.stub.StreamObserver<Req> invoke(
        io.grpc.stub.StreamObserver<Resp> responseObserver) {
      switch (methodId) {
        default:
          throw new AssertionError();
      }
    }
  }

  private static abstract class EducationProtoBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    EducationProtoBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.yscz.bs.lib.EducationProtoOuterClass.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("EducationProto");
    }
  }

  private static final class EducationProtoFileDescriptorSupplier
      extends EducationProtoBaseDescriptorSupplier {
    EducationProtoFileDescriptorSupplier() {}
  }

  private static final class EducationProtoMethodDescriptorSupplier
      extends EducationProtoBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    EducationProtoMethodDescriptorSupplier(String methodName) {
      this.methodName = methodName;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
      return getServiceDescriptor().findMethodByName(methodName);
    }
  }

  private static volatile io.grpc.ServiceDescriptor serviceDescriptor;

  public static io.grpc.ServiceDescriptor getServiceDescriptor() {
    io.grpc.ServiceDescriptor result = serviceDescriptor;
    if (result == null) {
      synchronized (EducationProtoGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new EducationProtoFileDescriptorSupplier())
              .addMethod(getControlAlgMethod())
              .addMethod(getSendFacesEmotionMethod())
              .addMethod(getSendEmotionStatisticsMethod())
              .build();
        }
      }
    }
    return result;
  }
}
